package cn.kent.nio;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class MyTest {
    public static void main(String[] args) {
        System.out.println(Charset.defaultCharset().encode("中国").toString());
        System.out.println(StandardCharsets.UTF_8.encode("中国").toString());
    }
}
